import request from '@/config/axios'

export default {
  async operatePartyBuildingNews(type, data, params) {
    const methodObj = {
      create: 'post',
      page: 'post',
      update: 'put',
      delete: 'delete'
    }
    return await request[methodObj[type]]({
      url: `/countryside/party_building_news/${type}`,
      data,
      params
    })
  },
  async getOperatePartyBuildingNews(id) {
    return await request.get({ url: '/countryside/party_building_news/get?id=' + id })
  }
}
